#pragma once

#include "e2d/core/Component.h"
#include "e2d/core/physics/PxShapeMap.h"


namespace e2d
{

	struct  RigidbodyStatic :public e2d::Component
	{
		FXCC_DEFINE_COMPONENT_LABEL(RigidbodyStatic);

		physx::PxRigidStatic* m_PxRgStatic{ 0 };

		float m_Mass{ 1.0f };

		e2d::PxShapeMap m_PxShapeMaps;

		void Delete();

		void Create();

		void OnLoad() override;

		void OnStart() override;

		void OnUpdate() override;

		void OnUpdateRuntime() override;

		void OnDestroy() override;

	};
};